<template>
	<view>
		<view class="car">
			<view class="box1">
				<view style="color: #FFFFFF; font-size: 108rpx;">+{{currentDetails.currentProductChgLastWeek}}%</view>
				<view style="color: #FFFFFF; font-size: 24rpx;">七日收益年化收益率</view>
			</view>
			<view class="box2">
				<view class="box2-1 view">
					<view style="font-size: 28rpx;">{{currentDetails.currentProductEarnings}}</view>
					<view style="font-size: 20rpx;">万分收益</view>
				</view>
				<view class="box2-2 view" style="border-left: 1px solid #ffa5b3; border-right: 1px solid #ffa5b3 ;">
					<view style="font-size: 28rpx;">{{currentDetails.currentSupplierPropertyBuy}}元</view>
					<view style="font-size: 20rpx;">起购金额</view>
				</view>
				<view class="box2-3 view">
					<view style="font-size: 28rpx;">{{currentDetails.currentProductRisk}}</view>
					<view style="font-size: 20rpx;">风险等级</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import {
		createNamespacedHelpers
	} from 'vuex';
	const {
		mapState,
		mapMutations,
		mapActions
	} = createNamespacedHelpers('licai');
	export default {
		name: "car",
		props:['ids'],
		computed: {
			...mapState(['currentDetails'])
		},
		methods: {
			...mapActions(['getcurrentDetails'])
		},
		created() {
		
			// this.getcurrentDetails({
			// 	id: this.ids
			// })
		},
		data() {
			return {

			};
		}
	}
</script>

<style lang="scss" scoped>
	.car {
		background-color: #ff4558;
		height: 400rpx;
		box-sizing: border-box;

		.box1 {
			padding-top: 70rpx;
			height: 70%;

			text-align: center;
		}

		.box2 {
			height: 30%;
			box-sizing: border-box;
			padding-bottom: 10rpx;


			display: flex;

			.view {
				padding-top: 20rpx;
				color: #FFFFFF;
				width: 33.33%;

				text-align: center;
			}
		}
	}
</style>
